package app.unicorn.com.xcontainerprj;

import android.app.Application;

import com.baidu.mapapi.SDKInitializer;
import com.netease.scan.QrScan;
import com.netease.scan.QrScanConfiguration;

/**
 *
 *      定义Application类
 *
 *                                                                  Created by CidyChou on 2017/8/15.
 */

public class MyApplication extends Application{

    @Override
    public void onCreate() {
        super.onCreate();
        //初始化 baidu SDK
        SDKInitializer.initialize(getApplicationContext());

        // 设置scan样式
        //setQRScanConfig();

    }


//    private void setQRScanConfig() {
//        // 默认配置
//        // QrScanConfiguration configuration = QrScanConfiguration.createDefault(this.getContext());
//
//        QrScanConfiguration configuration = new QrScanConfiguration.Builder(getApplicationContext())
//                .setTitleHeight(53)
//                .setTitleText("来扫一扫")
//                .setTitleTextSize(18)
//                .setTitleTextColor(R.color.white)
//                .setTipText("将二维码放入框内扫描~")
//                .setTipTextSize(14)
//                .setTipMarginTop(40)
//                .setTipTextColor(R.color.white)
//                .setSlideIcon(R.drawable.capture_add_scanning)
//                .setAngleColor(R.color.white)
//                .setMaskColor(R.color.black_80)
//                .setScanFrameRectRate((float) 0.8)
//                .build();
//        QrScan.getInstance().init(configuration);
//    }

}
